{% extends 'base.html' %}

{% block container %}
  {{ super() }}
  <h3>有没有什么想说的？</h3><br/>
  <form role="form" method="POST">
    <div class="form-group">
      <textarea name="comment" class="form-control" rows="3" id="comment"></textarea>
      <br/>
      {% if current_user.is_authenticated() %}
      <button type="submit" class="btn btn-default btn-lg btn-block">POST!</button>
      {% else %}
      <a href="{{ url_for('auth.login') }}" type="button" class="btn btn-warning btn-lg btn-block">点我登陆才能 POST!</a>
      {% endif %}
    </div>
  </form>
{% endblock %}